package com.gome.axwl.aoc.service;

import com.gome.axwl.aoc.entity.dto.IntegrationParamDto;
import com.gome.axwl.aoc.entity.dto.IntegrationRuleDto;
import com.gome.axwl.aoc.entity.dto.QueryResultAndModifyStatusDto;
import com.gome.commons.core.ResultData;

/**
 * @Description: 积分规则业务service
 * @Auther: yinyuxin@gome.com.cn
 * @Date: 2018/4/25 13:55
 */
public interface IntegrationRuleService {

    /**
     * 根据规则类别和日期查询规则设置信息
     * @param date 时间 yyyy-MM 的字符串
     * @param ruleType 积分规则类别 0：好评率  1：准时送达率 2：接单天数
     * @author yinyuxin
     * @return
     */
    ResultData<QueryResultAndModifyStatusDto<IntegrationRuleDto>> queryIntegrationRulesByType(String date, Byte ruleType);

    /**
     * 修改积分规则
     * @author yinyuxin
     * @param integrationParamDto
     * @return
     */
    ResultData modifyIntegrationRules(IntegrationParamDto integrationParamDto);


    /**
     * 初始化积分规则设置
     * @author yinyuxin
     * @return
     */
    ResultData initIntegrationRules();
}
